#include "warp.h"

using namespace sleek;
using namespace core;
using namespace device;

Warp::Warp(sleek::core::engine::engine *engine) : Sprite(engine)
{
    path = "warp";
    type = EET_SPRITE;
    loadSprite();
    setAnimation(0);
}
Warp::~Warp()
{
}
void Warp::loadSprite()
{
    sleek::core::math::array<sleek::texture::texture*> tmp;
        tmp.push_back(texture::LoadTextureFromPng("element/warp/0.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/1.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/2.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/3.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/4.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/5.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/6.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/7.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/8.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/9.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/10.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/11.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/12.png"));
        tmp.push_back(texture::LoadTextureFromPng("element/warp/13.png"));
    sprite.push_back(tmp);
    text = tmp[0];
}
